import { Car } from './Car'

export let selectedCar: Car | null = null

export const setSelectedCar = (car: Car) => {
    if (selectedCar) {
        selectedCar.setSelected(false)
    }
    selectedCar = car
    car.setSelected(true)
}
